#ifndef __SIGNAL_H__
#define __SIGNAL_H__

#include "list.h"

struct signal_elt{
  int id_sig;
  void (*sig_handler) (int);
  struct thread_elt * parent_thread;
  struct signal_elt * next_rcvd_sig;
  struct signal_elt * next_thread_sig;
};

struct signal_elt *sig_list; //file des signaux reçus par les threads

int sigaction_t(int signum,void (*sig_hdlr) (int));
int kill_t(struct thread_elt * thread,int sig_num);
//void wait_t();

void add_signal(struct signal_elt *e, struct signal_elt **list);

#endif
